package com.bjsdzk.collector.serviceImp;

import com.bjsdzk.collector.entity.model.Dictionaries;
import com.bjsdzk.collector.entity.model.ExceColleContr;
import com.bjsdzk.collector.mapper.DictionariesMapper;
import com.bjsdzk.collector.mapper.ExceColleContrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author pc
 */
@Service
public class DictionariesService {
    @Autowired
    private DictionariesMapper dictionariesMapper;

    @Cacheable(value="cache_Dictionaries", key="#deviceType")
   public Map<String, Dictionaries> findAll(String deviceType){
        return dictionariesMapper.findAll(deviceType);
    }
}
